#!/usr/bin/python3
# coding: utf-8
# file: list_.py
# 列表的使用
# 2018-06-12
list_ = [1,2,3]

def list_remove(list_):
	'''删除列表元素'''
	list_.remove(3)
	print(list_)

list_remove(list_)


list_a = [1,2,3]
list_b = [4, 5, 6]

def diffrence_set():
	'求列表差集'
	# r  = [i for i in list_a if i not in list_b]
	# r = filter(lambda _: _ not in list_b, list_a)
	r = list(set(list_a).difference(set(list_b)))
	print(r)

diffrence_set()


